package com.tensquare.ai.controller;
/*
 *ClassName:CnnController
 *Description:
 *@author:可爱的大鸭子
 */

import com.tensquare.ai.service.CnnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/cnn")
public class CnnController {
    @Autowired
    private CnnService cnnService;
    @RequestMapping(value="/textclassify",method = RequestMethod.POST)
    public Map textClassify(@RequestBody Map<String,String> content){
        return cnnService.textClassify(content.get("content"));
    }
}
